
class Animal{
    static int a;
 private static void fun(){
        System.out.println("abc");
    }
    static class Dog{
     int c;
     int a;
     public void fun1(){
         System.out.println("222");
         System.out.println(Animal.a);
     }
    }

    public void fun3(){
     Dog dog = new Dog();
     dog.fun1();
     Integer a =10;

    }

    public void fun1(){
        fun();
    }
}
class Cat extends Animal{
    int d;
    public void Ape(){

    }
    public Cat(int d){
        System.out.println("1111");
    }
    public Cat(){
        super();
        System.out.println("111");
    }
}
public class Test {
    public static void main2(String[] args) throws Exception{
        int i = 0;
        if (i < 10) {
            throw new Exception("something is good");
        }
    }
    public static void main(String[] args) {
       Cat cat = new Cat();
        cat.Ape();
    }

    public static void main1(String[] args) {

        int a = 0;
        int b = 1;
        try {
            int c = b / a;
            throw new RuntimeException();
        }
        catch (RuntimeException c){
            System.out.println("dad");
        }
        catch (Exception e){
            System.out.println("123");
        }
    }
}
